import request from '@/utils/request'

export function docList(query) {
  return request({
    url: '/system/doc/list',
    method: 'get',
    params: query
  })
}
export function docInfo(data) {
  return request({
    url: '/system/doc/' + data,
    method: 'get',
  })
}
// 新增知识分类
export function docAdd(data) {
  return request({
    url: '/system/doc',
    method: 'post',
    data: data
  })
}
// 新增知识分类
export function docEdit(data) {
  return request({
    url: '/system/doc',
    method: 'put',
    data: data
  })
}
export function docDel(data) {
  return request({
    url: '/system/doc/' + data,
    method: 'DELETE',
    data: data
  })
}
export function setTop(klgDocId,type) {
  return request({
    url: '/system/doc/setTop?klgDocId=' + klgDocId + '&type=' + type,
    method: 'get',
  })
}
